package com.csea.tools.enums;

import lombok.Getter;

/**
 * @author Csea
 * @title
 * @date 2019/12/13 13:12
 */
@Getter
public enum ResultEnum {
    ERROR(-1, "服务端错误"),
    SUCCESS(0, "成功"),

    SAME_LEVEL_DEPARTMENT_NAME(100, "同一层级下已经有相同的部门名称"),
    DEPARTMENT_TO_BE_UPDATED_NOT_EXIST(101, "待更新部门信息不存在"),
    SAME_LEVEL_PERMISSION_NAME(102, "同一层级下已经有相同的权限模块名称"),
    PERMISSION__TO_BE_UPDATED_NOT_EXIST(103, "待更新权限模块信息不存在"),
    SAME_ROLE_NAME_ALREADY_EXISTS(104, "已存在相同的角色名称"),
    ROLE_TO_BE_UPDATED_NOT_EXIST(104, "待更新角色信息不存在"),
    SAME_MENU_NAME_ALREADY_EXISTS(104, "已存在相同的菜单名称"),
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }}
